<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<style>
    #title{
        width: 200px;
        padding: 20px 20px 0px 20px;
        text-align: center;
    }

    
    #content{
        overflow-y:scroll;
      
        padding: 20px;
        width: 200px;
        height: 300px;
    }

    #center{
        border: none;
        border-radius: 10px;
        box-shadow: 0px 0px 10px #c3c3c3;
        width: 240px;
        margin: auto;
    }
    #center div{
        margin-bottom: 10px;
    }

    #send{
       float: right;
    }
    .head{
        height:20px;
        width: 20px;
    }
    .info{
        display: inline-block;
        line-height: 40px;
        margin-left: 20px;
    }

    .liaotian{
        display: flex;
        align-items:center;/*由于flex-direction: column，因此align-items代表的是水平方向*/
        justify-content: center;/*由于flex-direction: column，因此justify-content代表的是垂直方向*/
    }
</style>
<body>
<div id="center">
    <div id="title">0.0</div>
    <hr>
    <div id="content" >
        <div class="liaotian"><img class="head" src="../image/aa.png"><span class="info">你好</span></div>
    </div>
    <hr>
    <div id="senddiv">
        <textarea style="width: 234px;height:60px"></textarea>
        <button id="send" v-on:click="ccc">发送</button>
    </div>
    <textarea id="demo12" style="float: left;"></textarea>
</div>

<script src="../js/jquery.min.js"></script>
<script src="../js/vue.js"></script>

<script>
 layui.use('layedit', function () {
                        var layedit = layui.layedit;
                        layedit.build('demo'); //建立编辑器
                    });

    new Vue({
        el: "#senddiv",
        data:{content:""},
        methods:{
            ccc:function(){
               $.get('http://localhost:70/devu/discuss/next',{pageSize:4,pageNum:1},function(res){
                    alert(res.msg);
                    console.log(res.content);
               })
            }
        }
    })
</script>
</body>
</html>